import { RouteRecordRaw, RouterView } from 'vue-router'

const routes: Array<RouteRecordRaw> = [
  {
    path: '/algo-test',
    component: RouterView,
    meta: { title: '算法测试' },
    redirect: '/algo-test/task-list',
    children: [
      {
        path: '/algo-test/task-list',
        component: () => import('@/views/online-lab/algo-test/task-list/index.vue')
      },
      {
        path: '/algo-test/record-list/:id',
        meta: { title: '测试记录' },
        component: () => import('@/views/online-lab/algo-test/record-list/index.vue')
      },
      {
        path: '/algo-test/record-detail/:id',
        meta: { title: '测试记录-详情' },
        component: () => import('@/views/online-lab/algo-test/record-detail/index.vue')
      }
    ]
  }
]

export default routes
